//请求后台的方法
import request from '@/request'
//提交流程
export function createProcess(data) {
  return request({
    url: "/process/create",
    method: "post",
    data
  });
}

//提交流程
export function myTask(data) {
  return request({
    url: "/process/myTask",
    method: "post",
    data
  });
}

//提交流程
export function myTaskCount() {
  return request({
    url: "/process/myTaskCount",
    method: "post"
  });
}


//审批流程
export function examine(data) {
  return request({
    url: "/process/examine",
    method: "post",
    data
  });
}

//工单受理
export function acceptDemand(data) {
  return request({
    url: "/process/acceptDemand",
    method: "post",
    data
  });
}

export function acceptReassignment(data) {
  return request({
    url: "/process/acceptReassignment",
    method: "post",
    data
  });
}

export function reassignment(data) {
  return request({
    url: "/process/reassignment",
    method: "post",
    data
  });
}


export function view(data){
  return request({
    url:'/process/view',
    method: 'post',
	contentType:'multipart/form-data',
	responseType:'blob',
	data
  })
}

export function view1(data){
  return request({
    url:'/process/view1',
    method: 'post',
	data
  })
}

export function queryhis(data) {
  return request({
    url: "/process/queryhis",
    method: "post",
    data
  });
}

//获取转派信息
export function getTaskReassignment(params) {
  return request({
    url: "/process/getTaskReassignment",
    method: "post",
    params:params
  });
}

export function verifyTask(params) {
  return request({
    url: "/process/verifyTask",
    method: "post",
    params:params
  });
}






